package day2;

import java.sql.Connection;
import java.sql.DatabaseMetaData;
import java.sql.SQLException;

import utility.JdbcUtils;


public class DatabaseMetaDataTest {
	public static void main(String[] args) throws SQLException {
		Connection conn = JdbcUtils.getConnection();
		DatabaseMetaData dbmd = conn.getMetaData();
		System.out.println("db name: " + dbmd.getDatabaseProductName());
		System.out.println("tx: " + dbmd.supportsTransactions());
		conn.close();
	}
}
